home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / sco / xenix < prev    next >
Encoding:
Text File  |  1993-06-11  |  61.5 KB  |  1,454 lines

  1. Newsgroups: comp.unix.xenix.sco,news.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!news.kei.com!sol.ctr.columbia.edu!emory!swrinde!cs.utexas.edu!chinacat!chip
  3. From: chip@chinacat.unicom.com (Chip Rosenthal)
  4. Subject: Welcome to comp.unix.xenix.sco [monthly FAQ posting]
  5. Expires: Mon, 9 Aug 1993 22:51:03 GMT
  6. Organization: Unicom Systems Development, Austin, TX
  7. Date: Thu, 10 Jun 1993 22:51:03 GMT
  8. Approved: news-answers-request@MIT.Edu
  9. Message-ID: <sco-xenix-930610@chinacat.unicom.com>
  10. Followup-To: comp.unix.xenix.sco
  11. Summary: answers to frequently asked questions
  12. Supersedes: <sco-xenix-930428@chinacat.unicom.com>
  13. Lines: 1438
  14. Xref: senator-bedfellow.mit.edu comp.unix.xenix.sco:8388 news.answers:9266
  15.  
  16. Archive-name: sco-xenix
  17. News-answers-archive-name: sco/xenix
  18. Posting-frequency: monthly
  19. Version: 1.45
  20.  
  21. @(#) sco-xenix 1.45 93/06/05 22:03:21
  22.  
  23. Welcome to comp.unix.xenix.sco.  This newsgroup is about the XENIX
  24. operating system from the Santa Cruz Operation (SCO).  If you have an
  25. SCO XENIX question, then you've come to the right place.
  26.  
  27. This is NOT the newsgroup for SCO UNIX or Open Desktop questions.  If
  28. you want to talk about other SCO operating systems, please show some
  29. courtesy and use an appropriate newsgroup, such as comp.unix.pc-clone.32bit.
  30. (Hey!  Don't blame me.  I voted against that silly name.)  This is also
  31. NOT the right place for questions about XENIX implementations from
  32. other vendors.  Use comp.unix.xenix.misc.
  33.  
  34. Certain questions are asked frequently on the net.  Frequently asked
  35. questions (FAQs) get old and boring after a while.  We can stamp out
  36. FAQs in your lifetime!  Please review this message before posting your
  37. question to comp.unix.xenix.sco.
  38.  
  39. If you haven't already done so, please read the periodic postings in
  40. news.announce.newusers entitled "A Primer on How to Work With the Usenet
  41. Community", "Answers to Frequently Asked Questions about Usenet" and
  42. "Hints on writing style for Usenet".  You should also review the
  43. comp.unix.questions FAQ postings.  These answer general questions,
  44. such as `How do I delete a file with funny characters in the name?'
  45. and `How can I change my shell prompt?'  C programmers should check
  46. out the FAQ in comp.lang.c.
  47.  
  48. Whenever we talk about XENIX here, we really mean SCO XENIX System V.
  49. Our comments often won't apply to the other kinds of XENIX.  Also, be
  50. particularly careful if you use XENIX/286.  It's been ages since we've
  51. used it and some of our suggestions might not apply.
  52.  
  53. This message is maintained and posted monthly by Chip Rosenthal.  Your
  54. corrections, additions, and comments are encouraged.  Please mail them
  55. to chip@chinacat.unicom.com.  These questions and answers were written
  56. by Chip Rosenthal, Jeff Liebermann, Ronald Florence, Chip Salzenberg,
  57. Ronald Khoo, Vic Michael, and Stephen Bleazard.  Helpful contributions
  58. and comments have been provided by Andrew Phillips, Peter Funk, and
  59. Paul Warren.
  60.  
  61. Please examine the date near the top of this message.  This message
  62. is updated frequently, and any version older than 90 days is possibly
  63. obsolete.  The latest copy of this message is always available via
  64. anonymous FTP to rftm.mit.edu in the "/pub/usenet/comp/unix/xenix/sco"
  65. directory.  It may also be retrieved via e-mail.  Send a message to
  66. "mail-server@rtfm.mit.edu" that says "send usenet/news/answers/sco/xenix".
  67.  
  68.  
  69. ******************************************************************************
  70. ****************************  Questions Answered  ****************************
  71. ******************************************************************************
  72.  
  73.  
  74. ===> Product Questions:
  75.  
  76.     QA1.  What is the difference between UNIX and XENIX?
  77.     QA2.  What is the minimum system required to run XENIX?
  78.     QA3.  Should I buy UNIX or XENIX?
  79.     QA4.  What are the current XENIX versions?
  80.     QA5.  Where can I get XENIX fixes?
  81.     QA6.  I'm using an older XENIX/386 version.  What fixes do I need?
  82.     QA7.  Does SCO have a BBS?
  83.  
  84.  
  85. ===> General XENIX Questions:
  86.  
  87.     QB1.  Can't boot.  My system used to work.
  88.     QB2.  Configure(ADM) fails when I modify my system name.
  89.     QB3.  I upgraded XENIX.  Now I get `parity error' panics.
  90.     QB4.  Login fails without prompting for password.
  91.     QB5.  Can I use `gcc' instead of buying the SCO Development System?
  92.     QB6.  Program `foobar' dumps core with a stack overflow. [XENIX 286]
  93.     QB7.  Spell cannot initialize hash table.
  94.     QB8.  Will my laser printer work with the Text Processing Package?
  95.     QB9.  Where is crypt?
  96.     QB10. How can email handle `internet' addresses or use a `smart host'?
  97.     QB11. Where can I find freely available software for Xenix?
  98.  
  99.  
  100. ===> Disk and Filesystem Questions:
  101.  
  102.     QC1.  Can I use a disk bigger than 1024 cylinders?
  103.     QC2.  Why won't XENIX recognize my SCSI disk?
  104.     QC3.  Where is the `/u' filesystem I created?
  105.     QC4.  `WARNING!! - mounting: <usr> as <news>' message when booting.
  106.     QC5.  `POSSIBLE FILE SIZE ERROR' when running `fsck'.
  107.     QC6.  Is disk fragmentation curable?
  108.     QC7.  Can I put a CD-ROM drive on my Xenix system?
  109.  
  110.  
  111. ===> Communications Questions:
  112.  
  113.     QD1.  How do I add more than 2 COM ports?
  114.     QD2.  Where is the `gettydefs' entry for 19200 serial lines?
  115.     QD3.  How can I have more mscreen(C) sessions?
  116.     QD4.  Upgraded to 2.3.4 and flow control broke with mscreen(C).
  117.     QD5.  Terminals act funny, modems drop characters, help!!
  118.     QD6.  Does XENIX support 16550A UARTs?
  119.     QD7.  How do I increase the number of `clists'?
  120.     QD8.  How do I change the 16550A trigger level?
  121.     QD9.  How do I adjust the `ttyhog' value?
  122.     QD10. Where can I find TCP/IP?  NFS?
  123.     QD11. BSD based uucp can't connect to my machine.
  124.     QD12. uucp truncates my system name to seven characters!
  125.     QD13. What is the uucp `windows' patch?
  126.     QD14. uucp gives `alarm' messages, eventually dies.
  127.  
  128.  
  129. ===> Display and Graphics Questions:
  130.  
  131.     QE1.  How come Xenix won't recognize my VGA display?
  132.     QE2.  How can I do a printscreen under XENIX?
  133.     QE3.  How can I blank the console display when it is idle?
  134.     QE4.  How can I do graphics under XENIX?  What programs are available?
  135.     QE5.  CGI graphics mangles grey scale on a mono VGA.
  136.     QE6.  CGI graphics fail on a LaserJet in landscape mode.
  137.  
  138.  
  139. ===> XENIX and MS-DOS Interoperability Questions:
  140.  
  141.     QX1.  Can XENIX share a hard disk with MS-DOS?
  142.     QX2.  Can XENIX access MS-DOS disks?
  143.     QX3.  Can XENIX execute MS-DOS programs?
  144.     QX4.  Can MS-DOS execute XENIX programs?
  145.  
  146.  
  147. ===> The (in)Famous XENIX Cheat-Sheet:
  148.  
  149.     QZ1.  What the $%*&! is happening?
  150.  
  151.  
  152. ******************************************************************************
  153. ****************************  Product Questions  *****************************
  154. ******************************************************************************
  155.  
  156.  
  157. QA1.  What is the difference between UNIX and XENIX?
  158.  
  159.     XENIX is UNIX -- or at least one flavor of it.  In the late 70's,
  160.     Microsoft licensed the UNIX sources from AT&T and ported them to a
  161.     number of platforms.  In those days AT&T would license the UNIX sources
  162.     but not the UNIX name, thus each company had to invent their own name.
  163.     Microsoft picked XENIX.  Microsoft did not sell XENIX to end users.
  164.     Instead, they licensed the software to OEMs (Intel, Tandy, Altos, SCO,
  165.     etc.) who provided a finished end-user package.  Microsoft no longer
  166.     supports XENIX, and in fact never even offered a 286 or 386 version.
  167.  
  168.     Several UNIX implementations for the PC architecture have been tried
  169.     with varying levels of success.  SCO XENIX for the PC/XT was one.
  170.     Unfortunately, the PC/XT lacked hardware features required for robust
  171.     UNIX operations.  The PC/AT offered hardware memory protection, and
  172.     SCO XENIX/286 took advantage of it.  SCO XENIX/386 added demand
  173.     paged virtual memory.  These added features made multiuser PCs
  174.     viable, and SCO XENIX popular.
  175.  
  176.     SCO XENIX starts with a UNIX System III base, throws in several
  177.     Berkeley enhancements, and adds features to obtain conformance to
  178.     the System V Interface Definition (SVID).  Today, the bulk of the
  179.     code is from System V.  XENIX/386 even has capabilities to execute
  180.     UNIX programs.  However, it differs in many of the SVID `optional'
  181.     areas people tend to expect of a full System V.  For example, SCO
  182.     XENIX lacks a real `inittab'.  You need to go to a real System V
  183.     Release 3.2, such as SCO UNIX, for all these features.
  184.  
  185.  
  186. QA2.  What is the minimum system required to run XENIX?
  187.  
  188.     You can build a minimal, single-user XENIX system with an 80386SX
  189.     computer with 2MB to 4MB RAM and 40MB hard disk.  For the XENIX
  190.     development system, you'll want at least an 80386DX computer with
  191.     4MB RAM and 80MB hard disk.  Additional resources (more speed,
  192.     more RAM, more disk) will be required to support additional users,
  193.     large applications, networking, or X windows.  XENIX/286 will run
  194.     on a PC/AT, but you will quickly become frustrated with its
  195.     limitations, especially if you are a programmer.
  196.  
  197.  
  198. QA3.  Should I buy UNIX or XENIX?
  199.  
  200.     If you are running XENIX now, don't throw it away and buy UNIX.
  201.     XENIX will be around for some time.  However, if you are new to
  202.     multi-user computing, you should consider UNIX System V Release
  203.     3.2 or Release 4.0.  XENIX is a mature product.  There will be
  204.     few future enhancements.  UNIX has more goodies and better
  205.     performance than XENIX.  UNIX runs XENIX binaries, so it will do
  206.     most anything XENIX can -- and more.  XENIX requires less memory
  207.     and disk space.  However, hardware prices are declining and UNIX
  208.     is now pretty stable, so these are not great advantages.
  209.  
  210.     On the other hand there are a number of XENIX enthusiasts who
  211.     wouldn't switch if you gave them a free copy of UNIX.  They would
  212.     gladly forgo the new features to avoid the bloat of System V.
  213.  
  214.  
  215. QA4.  What are the current XENIX versions?
  216.  
  217.         Package                 Version         `perms' file
  218.         ----------------------  --------------  ---------------------------
  219.         XENIX Runtime System    2.3.4           inst, dsmd, tpmd, rts, ext
  220.         XENIX Runtime (286)     2.3.2           inst, dsmd, tpmd, rts, ext
  221.         Development System(386) 2.3.1           soft
  222.         Development System(286) 2.2.1           soft
  223.         CGI                     1.1.0           cgi
  224.         Text Processing         2.3.0           text
  225.         Manual Pages            2.3.0           man
  226.         VP/ix                   1.2.0           vpix
  227.         TCP/IP Runtime          1.2.0           tcprt
  228.         TCP/IP Development      1.0.1           tcpdev
  229.         Streams Runtime         1.0.0           streamsrt
  230.         Streams Toolkit         1.0.0           streamstk
  231.         Int'l Supplement(386)   2.1.0           sup.os
  232.         Int'l Supplement(286)   2.0.0           sup.os
  233.  
  234.     The perms column lists files found in the /etc/perms directory.
  235.     The `#rel=' line in these files will tell you what version you
  236.     have.
  237.  
  238.  
  239. QA5.  Where can I get XENIX fixes?
  240.  
  241.     SCO provides Support Level Supplements (SLS) at no charge.  They
  242.     may be downloaded by anonymous uucp from SCO's `sosco' machine.
  243.     To retrieve a shopping list of available SLSs, add one of the
  244.     following to your `/usr/lib/uucp/Systems' file:
  245.  
  246.         # Telebit (PEP) modem
  247.         sosco Any ACU 19200 14084291786u gin:-BREAK-gin:-BREAK-gin: uusls
  248.         # Hayes V-Series modem
  249.         sosco Any ACU 19200 14084274470 gin:-BREAK-gin:-BREAK-gin: uusls
  250.         # 1200 or 2400 bps modem
  251.         sosco Any ACU 300-2400 14084253502 gin:-BREAK-gin:-BREAK-gin: uusls
  252.  
  253.     European folks might prefer to use `scolon' instead.  From within
  254.     the UK, try:
  255.  
  256.         scolon Any ACU 300-19200 0923210911u \
  257.                 gin:-BREAK-gin:-BREAK-gin: uusls word: bbsuucp
  258.  
  259.     Outside the UK, replace the leading zero with the country code.
  260.     A 9600bps Trailblazer answers this line.  Delete the `u' at the
  261.     end of the phone number if you aren't using a Telebit modem.
  262.     Files are as on `sosco' but tend to be a week or so behind.  Also,
  263.     replace `sosco' with `scolon' `sosffm' in the examples below.
  264.  
  265.     In Germany, you can use:
  266.  
  267.         sosffm Any ACU 300-9600 069-50910736 \
  268.                 "" \r ogin:-BREAK-ogin: uusls sword: bbsuucp
  269.  
  270.     This modem supports V.32 transfers, but not PEP.  We've been told
  271.     this system is often behind the other sites.
  272.  
  273.     Add to your `/usr/lib/uucp/Permissions' file:
  274.  
  275.         # REQUEST files only - i.e. cannot send to sosco.
  276.         # rmail required to get bounced mail and error messages.
  277.         MACHINE=sosco SENDFILES=yes REQUEST=no COMMANDS=rmail:uucp \
  278.                 WRITE=/usr/spool/uucppublic:/tmp
  279.  
  280.     To retrieve an SLS listing to your machine as /tmp/info:
  281.  
  282.         uucp sosco\!/usr/spool/uucppublic/SLS/info /tmp/info
  283.  
  284.     This file also provides directions on retrieving, unarchiving,
  285.     and uncompressing the SLSs.  There is also a `descriptions' file
  286.     with additional details on the available SLSs.
  287.  
  288.     SLSs are also available on `uunet'.  For example, to get the `info'
  289.     file, run:
  290.  
  291.         uucp uunet\!~/vendor/sco/SLS/info /tmp/info
  292.  
  293.     Most of these machines also have Enhanced Feature Supplements (EFSs),
  294.     games and graphics programs, and new termcap and terminfo terminal
  295.     definitions in addition to SLS.  Look for an `info' or `README' file
  296.     one directory up from the `SLS' directory for more info.
  297.  
  298.  
  299. QA6.  I'm using an older XENIX/386 version.  What fixes do I need?
  300.  
  301.     Development System
  302.  
  303.     - 2.2.X or older    An upgrade to 2.3.1 must be purchased from SCO.
  304.  
  305.     - 2.3.1             Install `lng244'.
  306.  
  307.     Operating System
  308.  
  309.     - 2.2.X or older    An upgrade to 2.3.4 must be purchased from SCO.
  310.  
  311.     - 2.3.0 or 2.3.1    SCO would like you to purchase a 2.3.4 upgrade.
  312.                         The `xnx137' fix would get you to 2.3.2, but SCO
  313.                         does not provide it any longer.
  314.  
  315.     - 2.3.2             Install `xnx296a' to get to version 2.3.3.
  316.  
  317.     If you have VP/ix and installed update UFJ, then your kernel is
  318.     already at 2.3.3.  None the less, you still want `xnx296a'.  The
  319.     `xnx296a' update is also known as UFN, and replaces UFJ and UFM.
  320.     UFM was also known as the `xnx155b' update.
  321.  
  322.     You must install the development system before `xnx296a'.
  323.  
  324.     `xnx296a' provides you with most of the important fixes in 2.3.4.
  325.     You will lack some of the nice enhancements such as updated man
  326.     pages and the Korn shell.
  327.  
  328.     SCO preconfigures the kernel for a very minimal system.  You should
  329.     tune the kernel for your exact system configuration.  See the
  330.     "Tuning Kernel Parameters" chapter in the System Administrator's
  331.     Guide.
  332.  
  333.  
  334. QA7.  Does SCO have a BBS?
  335.  
  336.     Yes.  The SOS Support BBS is $95/year.  This is a good deal.  You
  337.     can:
  338.  
  339.         - download fixes, suggestions, and hints.
  340.         - keyword access to the support problems database.
  341.         - retrieve product info, release status, and hardware compatibility.
  342.         - get support via email.
  343.         - subscription to quarterly Discover newsletter.
  344.  
  345.     You can dial-in with a terminal program such as `cu' -- uucp is
  346.     not required.  Access is read-only, but most questions can be
  347.     answered by the support database.  SCO currently doesn't provide
  348.     SOS access to most overseas users.
  349.  
  350.     You might also consider joining the `SCO Developer Alliance Associates
  351.     Program.'  This costs $100/year, and also provides access to the BBS.
  352.     Contact devrel@sco.com for additional information.
  353.  
  354.  
  355. ******************************************************************************
  356. *************************  General XENIX Questions  **************************
  357. ******************************************************************************
  358.  
  359.  
  360. QB1.  Can't boot.  My system used to work.
  361.  
  362.     Check the A: drive.  If there is a floppy in there your system
  363.     might spew garbage on the monitor or hang during boot.  If this
  364.     problem occurs right after rebuilding a new kernel, go read the
  365.     FAQ on disks bigger than 1024 cylinder.
  366.  
  367.  
  368. QB2.  Configure(ADM) fails when I modify my system name.
  369.  
  370.     If you select a site name of two, three, or four characters,
  371.     `configure' will fail with an error message:
  372.  
  373.         space.asm(XXX): error A2050: Value out of range
  374.  
  375.     If the development system is installed, there is a workaround.
  376.     Do the following:
  377.  
  378.         - cd /usr/sys/conf
  379.  
  380.         - Edit `xenixconf'.  Search for the `nodename' line and enter
  381.           the desired system name between the double quotes.  For
  382.           example, for machine name = `foo' this line should read:
  383.  
  384.               nodename             "foo"
  385.  
  386.         - Similarly, edit the `master' file and correct the `nodename'
  387.           line.  For machine name = `foo' it should read:
  388.  
  389.               nodename  NODE      "foo"
  390.  
  391.         - Run `make'.  This will rebuild the kernel data files and
  392.           then link a new kernel.
  393.  
  394.         - Run `./hdinstall' to install the new kernel.
  395.  
  396.     Reboot the system, and the new node name should be in effect.  To
  397.     verify this, run `uname -a' after rebooting.
  398.  
  399.     This bug has been fixed in 2.3.4.
  400.  
  401.  
  402. QB3.  I upgraded XENIX.  Now I get `parity error' panics.
  403.  
  404.     Starting with XENIX 2.3.3, memory parity errors are detected by
  405.     the kernel.  In previous versions, parity errors would cause the
  406.     system to go silently flaky, but continue running.  Now, when a
  407.     parity error occurs, the machine will panic saying:
  408.  
  409.         PANIC: memory failure - parity error
  410.  
  411.     If you get this error after installing an update, XENIX didn't
  412.     break your machine -- it's been broken all along.  The most likely
  413.     cause of this error truly is memory problems.  Run a good memory
  414.     diagnostic overnight to try to locate the problem.  Keep the cover
  415.     on the computer while running diagnostics; heat tends to push a
  416.     marginal memory chip into failure.
  417.  
  418.     This problem can also be caused by a marginal power supply.  XENIX
  419.     boxes often have more power hungry peripherals than your run of
  420.     the mill MS-DOS PC.  For example, suspect the power supply if the
  421.     panics occur as soon as the tape drive starts spinning.
  422.  
  423.  
  424. QB4.  Login fails without prompting for password.
  425.  
  426.     If /dev/tty is missing or incorrect, you will get a `Login incorrect'
  427.     message without ever being prompted for a password.  For security
  428.     reasons, the `login' program goes directly to /dev/tty to ensure
  429.     the password comes from the keyboard.  Your `tty' device should
  430.     look something like:
  431.  
  432.         crw-rw-rw-   2 bin      bin        3,  0 Oct 24 04:09 /dev/tty
  433.  
  434.     If necessary, use the `mknod' command to recreate it.
  435.  
  436.  
  437. QB5.  Can I use `gcc' instead of buying the SCO Development System?
  438.  
  439.     Yes, but the task is bigger than you think.  A compiler alone
  440.     doesn't do any good if you lack header files, libraries, linker,
  441.     etc.  Don't forget about make, yacc, lex, etc.  Fortunately, the
  442.     repetoire of GNU software has grown to the point where you can
  443.     fill in all these pieces.  Many folks, particularly Steve Bleazard
  444.     and Ronald Khoo have done a lot of work getting `gcc' and the GNU
  445.     utilities running on Xenix.  So, with anonymous FTP access and a
  446.     little elbow grease, you can do it.
  447.  
  448.     First, you need to get a copy of gcc-1.40 from unix.secs.oakland.edu.
  449.     This is a custom(C) distribution of `gcc' that contains most of
  450.     the tools required to complete the free development system.  This
  451.     includes make, m4, indent, ctags, patch, ranlib, ar, strings, gcc,
  452.     flex, gdb, mprof, byacc, bison and rcs.
  453.  
  454.     Next, an alpha test version of a `libc' for Xenix is available
  455.     from kate.ibmpcug.co.uk (in /ftp/pub/xenix/libc) and unix.secs.oakland.edu
  456.     (in /pub/xenix); files XLIBC.README.Z and xlibc.shar.Z.  It is
  457.     based on the Berkley Networking Release 2 tape.  The library is
  458.     distibuted as a modification set and assumes that the aforementioned
  459.     gcc distribution has already been installed.
  460.  
  461.  
  462. QB6.  Program `foobar' dumps core with a stack overflow. [XENIX 286]
  463.  
  464.     XENIX/286 programs request a fixed amount of space for the stack
  465.     in the executable file header.  A program that exceeds this limit
  466.     will crash with a core dump.  To fix, change the header to ask
  467.     for more stack space.  You can recompile your programs with the
  468.     `-F' flag to increase the stack size.  You can change the stack
  469.     size of existing programs by running `fixhdr' with the `-F' flag.
  470.     This is not a problem on 80386 binaries that use a variable stack.
  471.  
  472.  
  473. QB7.  Spell cannot initialize hash table.
  474.  
  475.     The `spell' script (included in the optional Text Processing
  476.     package) uses an 8086 binary.  It needs to stuff a bunch of data
  477.     into a single 64K segment.  If you exceed this limit, you will
  478.     get an error saying something like:
  479.  
  480.         table = malloc(0xc848) fails
  481.         sbrk(0) = 0x3868
  482.         spell: cannot initialize hash table
  483.  
  484.     You can usually get enough space for `spell' to run by clearing
  485.     out your environment first.  To do this, add the following line
  486.     near the top of the `/usr/bin/spell' script:
  487.  
  488.         unset `env | sed -e '/^PATH=/d' -e '/^PS1=/d' -e 's/=.*//'`
  489.  
  490.  
  491. QB8.  Will my laser printer work with the Text Processing Package?
  492.  
  493.     XENIX `troff' is based on a version written long before the advent
  494.     of laser printers.  The only thing old troff understands is C/A/T
  495.     typesetters.  Chris Lewis's `psroff' allows old troff to work with
  496.     various devices, including Postscript and LaserJet printers.
  497.     Version 3.0 is available from the comp.sources.unix archives.
  498.  
  499.     For production work, consider purchasing a device independent
  500.     troff.  Some of the suppliers of `ditroff' are Elan, Image Network,
  501.     Leverage, and SoftQuad.
  502.  
  503.     Another alternative is the `groff' package by the Free Software
  504.     Foundation.  You can find it in any of the FSF archives -- but you
  505.     will need `g++' to compile it.  You will still need a backend program
  506.     to use a LaserJet with `groff'.  Some possibilities are `psroff'
  507.     and `dvi2xx' on ftp.wu-wien.ac.at.
  508.  
  509.  
  510. QB9.  Where is crypt?
  511.  
  512.     The DES encryption algorithm, the basis for `crypt', is categorized
  513.     by the US Government as munitions.  (Three cheers for the cold
  514.     war!)  SCO removes the crypt(S) procedure and crypt(C) command
  515.     from XENIX so it may be exported.  US domestic customers may
  516.     contact SCO to obtain SLS LNG190B.  If you simply need a crypt(S)
  517.     procedure to compile programs that do password checking, you may
  518.     get the SLS LNG255B `International Crypt SLS' from any of the
  519.     aforementioned archive sites.  This provides a crypt(S) procedure
  520.     that supports encryption but not decryption, and it does not
  521.     include the crypt(C) command.  A number of non-domestic archive
  522.     sites, for example the European GNU mirror sites, carry `crypt'
  523.     replacements which were developed outside the US to avoid this
  524.     export silliness.
  525.  
  526.  
  527. QB10. How can email handle `internet' addresses or use a `smart host'?
  528.  
  529.     Neither the SCO XENIX mail transport (/usr/lib/mail/execmail) nor
  530.     the mail program (/usr/bin/mail) can handle so-called `internet'
  531.     addresses (e.g. joe@acme.com).  Nor can they use a `smart host'
  532.     system to route your email to its final destination.  If you want
  533.     to add these features, you need to install a replacement transport
  534.     and reconfigure the mailer to use this transport.  For simple uucp
  535.     connectivity, we recommend smail2.5 (archive name `smail3' published
  536.     in comp.sources.unix volume 11).  If you also need network
  537.     connectivity (e.g. SMTP mail) then you'll need a more full-featured
  538.     mailer such as smail3.1, sendmail, or MMDF.
  539.  
  540.     Although smail2.5 fits right into the SCO mail system, some
  541.     modifications and installation tricks are required.  Both Chip
  542.     Salzenberg (see the comp.sources.misc archives) and Chip Rosenthal
  543.     (contact chip@chinacat.unicom.com) have provided solutions.
  544.  
  545.     Whatever approach you use, you must tell /usr/bin/mail to pass
  546.     messages off to execmail for delivery rather than handling them
  547.     itself.  Do this by adding a line which says `set execmail' to
  548.     the /usr/lib/mail/mailrc file.  You might also think about adding
  549.     a nice, full-screen mailer program such as Elm or Mush.
  550.  
  551.  
  552. QB11. Where can I find freely available software for Xenix?
  553.  
  554.     Many of the freely available programs on archive sites and published
  555.     on Usenet will run under Xenix with little or no modification.  Assuming
  556.     you have the Xenix Development System to compile it!  See news.answers
  557.     and comp.archives for information on archive sites.
  558.  
  559.     The following systems maintain software archives that specialize in Xenix.
  560.  
  561.     anomaly
  562.  
  563.        Administrator:   Michael P. Deignan <mpd@anomaly.sbs.COM>
  564.        Description:     Source code for SCO Xenix, UNIX, and ODT
  565.        FTP Access:      anomaly.sbs.risc.net [155.212.2.2], login=anonymous
  566.                           information in /SOFTLIST
  567.        UUCP Access:     1-401-455-0347 (PEP), 331-3706 (V.32bis)
  568.                           login=xxcp, passwd=xenix, information in ~/SOFTLIST
  569.        Mail Server:     send email to "snarf@anomaly.sbs.com" with a Subject 
  570.                           of "snarf" and the lines "snarf address <addr>"
  571.                           (replace <addr> with your email address) and "snarf
  572.                           help" to receive more information
  573.        Comments         ftp is via serial connection so be patient, number of
  574.                           connections limited to prevent congestion
  575.  
  576.     oakland.edu
  577.  
  578.       Administrator:    Ron Srodawa <srodawa@vela.acs.oakland.edu>
  579.       Description:      SCO Xenix ports, particularly GNU software
  580.       FTP Access:       unix.secs.oakland.edu [141.210.180.2],
  581.                             login=anonymous, files in /pub/xenix
  582.  
  583.     wimsey
  584.  
  585.       Administrator:    Stuart Lynne <sl@wimsey.com>
  586.       Description:      SLSs, SCO Unix (not Xenix) software in `custom' format
  587.       FTP Access:       ftp.wimsey.bc.ca [192.48.234.1], login=anonymous,
  588.                             information in /READ.ME.FIRST, /ls-lR.Z
  589.       UUCP Access:      1-604-939-4782 (PEP), 1-604-937-7411 (V.32bis),
  590.                             1-604-939-4756 (2400bps), login=nuucp, passwd=nuucp,
  591.                             information in ~ftp/READ.ME.FIRST, ~ftp/ls-lR.Z
  592.       Guest Access:     same phone numbers, login=guest, passwd=guest
  593.       Comments:         ftp is via serial connection so be patient, mostly
  594.                             Unix oriented but some of it might work with Xenix
  595.  
  596.  
  597. ******************************************************************************
  598. **********************  Disk and Filesystem Questions  ***********************
  599. ******************************************************************************
  600.  
  601.  
  602. QC1.  Can I use a disk bigger than 1024 cylinders?
  603.  
  604.     Yes.  However, your root filesystem cannot extend beyond the 1024th
  605.     cylinder, because that's as far as the BIOS can reach when booting
  606.     the system.  The BIOS is bypassed after XENIX boots, so cylinders
  607.     beyond 1024 can be accessed once XENIX is running.  It is not
  608.     necessary to use a sector translation mode controller to reduce
  609.     the number of cylinders.  The translation mode is very slow.
  610.  
  611.  
  612. QC2.  Why won't XENIX recognize my SCSI disk?
  613.  
  614.     Not all versions of XENIX support SCSI and those that do won't run
  615.     all SCSI adapters.  First, verify your N1 floppy says `Type: 386GT'
  616.     and not `Type: 386AT'.  The AT version of XENIX (now obsolete) does
  617.     not include any SCSI support.
  618.  
  619.     The GT version supports a limited number of SCSI host adapters.  The
  620.     Adaptec AHA-154x is supported.  We've also used compatibles such as
  621.     the Bustek BT-542B.  2.3.4 also supports WD1009V-SE1/2 and WD-7000-FASST2.
  622.     If you've got something different, you probably need to get a driver
  623.     from the board vendor.  The `SCO Hardware Compatibility Guide' (contact
  624.     SCO sales for one) should be consulted whenever you have any hardware
  625.     compatibility questions.
  626.  
  627.     Some typical installation mistakes are:
  628.  
  629.     - SCSI ID jumper for the root (boot) hard disk must be ID=0.
  630.     - The BIOS must be set for drive C:=NONE in the CMOS setup program.
  631.     - I/O port, memory address, or interrupt misconfiguration/conflict.
  632.     - Terminating resistors installed only at ends of ribbon cable.
  633.     - The parity jumper should be enabled on all drives and controllers.
  634.  
  635.     A word on terminating resistors:  Terminators must be installed on
  636.     the two devices at the end of the SCSI chain.  If you have no external
  637.     devices then one end of the chain will be the SCSI adapter -- so it
  638.     gets terminators.  The last device on the ribbon cable also needs
  639.     terminators.  The terminators must be removed from everything else on
  640.     the SCSI chain.
  641.  
  642.     Note:  If you are using XENIX 386GT 2.3.1-2.3.3 you should install
  643.     xnx252b for ISA or xnx150 for MCA.  This is an improved SCSI driver
  644.     that yields a significant performance improvement.
  645.  
  646.  
  647. QC3.  Where is the `/u' filesystem I created?
  648.  
  649.     When you create filesystems during the install procedure or with
  650.     `mkdev hd', the filesystem is initialized but it isn't configured
  651.     into the system.  To perform that final step you need to run `mkdev
  652.     fs'.  For example, if you created a `/u' filesystem, run:
  653.  
  654.         mkdev fs /dev/u /u
  655.  
  656.  
  657. QC4.  `WARNING!! - mounting: <usr> as <news>' message when booting.
  658.  
  659.     Due to a bug in the `mkdev fs' program, filesystems mounted below
  660.     the root directory are labeled wrong.  For example, if you mount
  661.     a device `/dev/news' onto directory `/usr/spool/news', then you
  662.     will get a warning message when going into multi-user mode.  That's
  663.     because `mkdev fs' labels the filesystem with the first component
  664.     in the pathname (`usr' in this example) when it really should be
  665.     the last component in the pathname (`news' in this example).
  666.  
  667.     This message is merely an annoyance and will not hamper system
  668.     operation.  To eliminate the warning, relabel the filesystem with
  669.     the last component of the mount directory.  For the above example,
  670.     you may change the label from `usr' to `news' by running the command:
  671.  
  672.         fsname -s news /dev/news
  673.  
  674.  
  675. QC5.  `POSSIBLE FILE SIZE ERROR' when running `fsck'.
  676.  
  677.     If `fsck' says `POSSIBLE FILE SIZE ERROR I=nnnn' don't panic.  It
  678.     almost always means `fsck' found a `sparse file', not a true
  679.     filesystem error.  A sparse file has holes in it.  They are created
  680.     when a program skips over sections of a file it is writing.  The
  681.     XENIX filesystem fills in those sections with zeros.  The XENIX
  682.     filesystem doesn't even both allocating disk blocks for the sections
  683.     full of zeros, thus creating a sparse file.  The complaint occurs
  684.     because `fsck' calculates the number of disk blocks needed to
  685.     store the file, counts up the number of disk blocks actually used
  686.     by the file, and complains that the two don't match.
  687.  
  688.     When you get a file size error from `fsck' you should note both
  689.     the `I=nnnn' inode number logged in the message and the filesystem
  690.     which was being checked.  You can see what the file is by running
  691.     the following command:
  692.  
  693.         ncheck -i <nnnn> <fsname>
  694.  
  695.     where <nnnn> is the number logged in the error message and <fsname>
  696.     is the pathname of the filesystem device, e.g. `/dev/u'.  Chances
  697.     are the file will either be a dbm(S) database file (in which case
  698.     ignore the complaint, it's expected) or a `core' dump (in which
  699.     case delete the `core' file).
  700.  
  701.  
  702. QC6.  Is disk fragmentation curable?
  703.  
  704.     Not easily.  However, the steps to slow down fragmentation are
  705.     pretty simple.
  706.  
  707.     XENIX maintains a list of available disk blocks.  As files are
  708.     deleted, the released blocks are appended to this free list.
  709.     Ideally, one would allocate adjacent blocks for new files.  However,
  710.     blocks are added to and removed from the free list without regard
  711.     for location.  Eventually, new files will be created with their
  712.     data blocks scattered all around the disk.  This fragmentation is
  713.     undesirable because it slows down disk accesses.
  714.  
  715.     To slow down the tendency towards fragmentation, periodically
  716.     reorder the blocks in the free list.  To do this, dismount the
  717.     filesystem (with `/etc/umount') and run `fsck -S'.  You will get
  718.     a message saying:
  719.  
  720.         FILE SYSTEM NOT MODIFIED, STILL DIRTY.
  721.  
  722.     Don't worry -- ignore that message.
  723.  
  724.     To determine how badly your filesystems are fragmented, run
  725.     `fsanalyze' by Michael J. Young, from comp.sources.misc.  You will
  726.     need patchlevel 3 to analyze XENIX filesystems.
  727.  
  728.     The conventional cure for filesystem fragmentation is:
  729.  
  730.     - Make a full backup of the filesystem.  Use `cpio' (or `afio' if
  731.       you've got it).  Do NOT use `tar'.  It doesn't backup device
  732.       nodes, pipes, or directories.  You could use `dump', but we find
  733.       it awkward.  (n.b.  Earlier versions of this FAQ claimed that
  734.       `dump' would restore in a fragmented manner.  That is incorrect.
  735.       Sorry for the misinformation.)
  736.  
  737.     - Recreate an empty filesystem with `divvy' or `mkfs'.  `divvy'
  738.       is easier to use -- simply select the `create' option.  However,
  739.       `mkfs' will be required if you want a non-default number of
  740.       inodes.  Invoke `divvy' with:
  741.  
  742.         /etc/divvy -c 1 -b 1            # for 1st physical disk
  743.         /etc/divvy -c 1 -b 1 -p 1       # for 2nd physical disk
  744.  
  745.     - Reload the filesystem from the backup.
  746.  
  747.     - Regenerate the `lost+found' directory.  Run:
  748.  
  749.         # Substitute appropriate name for `foo'.
  750.         /etc/fsck /dev/foo
  751.         /etc/mount /dev/foo /foo
  752.         mkdir /foo/lost+found
  753.         for i in 1 2 3 4 5 6 7 8 ; do
  754.             for j in 1 2 3 4 5 6 7 8 ; do
  755.                 touch /foo/lost+found/x$i$j
  756.             done
  757.         done
  758.         rm /foo/lost+found/x??
  759.         /etc/umount /dev/foo
  760.  
  761.     Be very careful with this procedure.  We suggest you verify your
  762.     backup is readable before zapping the filesystem.  One mistake
  763.     (especially when running `mkfs' or `divvy') will trash everything.
  764.     The filesystem you trash may be your own.
  765.  
  766.  
  767. QC7.  Can I put a CD-ROM drive on my Xenix system?
  768.  
  769.     No.  The difficulty is not making Xenix talk to a CD-ROM drive.
  770.     That's easy.  The problem is that a CD-ROM needs to be mounted so
  771.     you can access the files on it, so Xenix would have to be extended
  772.     with support for ISO-9660/High Sierra file systems.  Now, that's
  773.     the tough part.  Refer to the FAQ on why Xenix doesn't have NFS
  774.     for additional information on why that's so difficult.
  775.  
  776.  
  777. ******************************************************************************
  778. *************************  Communications Questions  *************************
  779. ******************************************************************************
  780.  
  781.  
  782. QD1.  How do I add more than 2 COM ports?
  783.  
  784.     Dumb serial cards (and internal modems) may be configured for XENIX
  785.     as COM3 and COM4 -- with one big caveat.  Each COM port requires its
  786.     own interrupt number.  If you have an unused IRQ and the Development
  787.     System, you may build additional COM ports into the kernel.  To
  788.     illustrate the procedure, we will add a COM3 configured as follows:
  789.  
  790.         I/O Addr: 0x3E8
  791.         IRQ:      5
  792.         device:   /dev/tty3a    Major=5, Minor=16
  793.                   /dev/tty3A    Major=5, Minor=144
  794.  
  795.     1.  Edit `/usr/sys/io/sioconf.c'.
  796.  
  797.         The two lines in this file that describe COM1 and COM2 are:
  798.  
  799.             {0,IBM_BOARD,  1,4,0,  (sd)0x3f8,0,     0,MCRBIT3}, /*ibm COM1*/
  800.             {1,IBM_BOARD,  1,3,8,  (sd)0x2f8,0,     0,MCRBIT3}, /*ibm COM2*/
  801.  
  802.         Add a line that says:
  803.  
  804.             {2,IBM_BOARD,  1,5,16, (sd)0x3e8,0,     0,MCRBIT3}, /*ibm COM3*/
  805.  
  806.         See `/usr/sys/io/sioconf.h' for details.
  807.  
  808.     2.  Edit `/usr/sys/conf/master'.
  809.  
  810.         The serial ports are defined by the line:
  811.  
  812.             sio     4    0577 104     sio   0   0   5   1   7   3   4  33  34
  813.  
  814.         The last four fields define the interrupt numbers used.  Change
  815.         the `33' to a `5' since COM3 will be on IRQ5.  For reference,
  816.         here is the mapping between IRQ lines and the master file
  817.         `magic numbers':
  818.  
  819.             IRQ0  0       IRQ4  4       IRQ8  30      IRQ12  34
  820.             IRQ1  1       IRQ5  5       IRQ9  31      IRQ13  35
  821.             IRQ2  31      IRQ6  6       IRQ10 32      IRQ14  36
  822.             IRQ3  3       IRQ7  7       IRQ11 33      IRQ15  37
  823.  
  824.     3.  Rebuild the kernel.  Run:
  825.  
  826.             cd /usr/sys/conf
  827.             make
  828.  
  829.         Do not use `link_xenix' here.  You need to run `make' to get
  830.         `sioconf.o' and the kernel data files rebuilt.
  831.  
  832.     4.  Install the new kernel.  Run:
  833.  
  834.             /usr/sys/conf/hdinstall
  835.  
  836.         This will make a backup of your current kernel to `/xenix.old'.
  837.  
  838.     5.  Create the device nodes.  Run:
  839.  
  840.             mknod /dev/tty3a c 5 16
  841.             mknod /dev/tty3A c 5 144
  842.  
  843.     Reboot your system, and the new serial port should be there.
  844.  
  845.  
  846. QD2.  Where is the `gettydefs' entry for 19200 serial lines?
  847.  
  848.     For historical reasons, terminal speeds of 19200 and 38400 are
  849.     called `EXTA' and `EXTB', not `B19200' and `B38400'.  Entries `n'
  850.     and `o' in the `/etc/gettydefs' file are for 19200 and 38400,
  851.     respectively.  Once logged in you can change the line speed with
  852.     the `stty' command:
  853.  
  854.         stty 9600               # set to 9600 bps (bits per second)
  855.         stty exta               # set to 19200 bps
  856.         stty extb               # set to 39400 bps
  857.  
  858.     A smart serial card is recommended for these two highest speeds.
  859.  
  860.  
  861. QD3.  How can I have more mscreen(C) sessions?
  862.  
  863.     The mscreen(C) facility provides multiple sessions from a serial terminal
  864.     by `multiplexing' your terminal (tty) line onto several pseudo-terminal
  865.     (pty) lines.  XENIX is shipped with eight ptys enabled, that provides
  866.     a system-wide limit of eight sessions through the mscreen(C) command.
  867.  
  868.     First off, you need to determine whether you are allocating mscreen(C)
  869.     sessions wisely.  For example, SCO ships an `/etc/mscreencap' file
  870.     that runs six sessions on a WY-60 terminal.  If you edit `mscreencap'
  871.     and cut this down to three you immediately double the number of people
  872.     who can run mscreen(C).
  873.  
  874.     You cannot increase this number beyond eight if you are running TCP/IP.
  875.     (More about this in a moment.)  If you are not running TCP/IP, then
  876.     you can increase the number of possible mscreen(C) sessions by:  first
  877.     creating more ptys in the kernel, second creating the device nodes
  878.     for the new ptys, and finally placing a `getty' upon each of these
  879.     new ptys.
  880.  
  881.     To create more ptys in the kernel, increase the `nspttys' kernel
  882.     parameter.  With XENIX 2.3.4, run the `configure' command interactively
  883.     and select the `Multiscreens' option.  For older versions of XENIX,
  884.     run `configure' manually.  For example, to provide sixteen ptys, run:
  885.  
  886.         cd /usr/sys/conf
  887.         ./configure nspttys=16
  888.  
  889.     Once `nspttys' is set, run `link_xenix' and `hdinstall' to build and
  890.     install a new kernel.
  891.  
  892.     Next, you need to create the device nodes in the /dev directory for
  893.     these additional ptys.  Unfortunately, mscreen(C) uses a very poor
  894.     naming strategy for ptys beyond the 8th.  Once you go beyond the
  895.     /dev/ttyp7 in the base XENIX distribution, mscreen(C) next looks for
  896.     not /dev/ttyp8, but rather /dev/ttyp01.  Therefore you should create
  897.     the eighth pty with the commands:
  898.  
  899.         cd /dev
  900.         mknod ttyp01 c 54 8
  901.         mknod ptyp01 c 55 8
  902.         chmod 666 ptyp01
  903.         chmod 644 ttyp01
  904.  
  905.     You might notice that these names are the same ones used by `rlogind'
  906.     and `telnetd' under SCO TCP/IP.  Unfortunately, to use these ptys for
  907.     mscreen(C) you need to place a `getty' on them -- but if you do then
  908.     rlogin/telnet will break.  Those running TCP/IP (and not weak of heart)
  909.     can try editing the `/dev/ttyp' string in the `mscreen' binary and
  910.     totally rename the pty devices.
  911.  
  912.     Finally, edit `/etc/ttys' (and `/etc/ttytype') to tell them about
  913.     the new pty lines, and run `enable' upon each of the lines.
  914.  
  915.  
  916. QD4.  Upgraded to 2.3.4 and flow control broke with mscreen(C).
  917.  
  918.     The 2.3.4 version of mscreen(C) was changed to run the tty line totally
  919.     raw.  This is required so that the ^S and ^Q keys are passed onto
  920.     programs that need them, such as `emacs' and Foxbase.  An unfortunate
  921.     side effect of handling flow control on the pty side rather than the
  922.     tty side is that response to flow control is a lot more sluggish.  Now,
  923.     when you hit ^S you might get another screenful of data before the
  924.     display actually freezes.
  925.  
  926.     If you never run any applications that require full 8-bit transparency,
  927.     one way to make flow control more responsive is to rename `mscreen'
  928.     to `/usr/bin/mscreen.sco' and install the following script in its
  929.     place:
  930.  
  931.         :
  932.         tty=`tty`
  933.         ( sleep 5 ; stty ixon <$tty ) &
  934.         exec mscreen.sco
  935.  
  936.  
  937. QD5.  Terminals act funny, modems drop characters, help!!
  938.  
  939.     If you are losing characters on your serial lines, consider the
  940.     following steps:
  941.  
  942.     * Ensure that flow control is working right.
  943.  
  944.     * If you are running dumb COM ports, either upgrade the UART chips
  945.       to 16550As or switch to a smart serial card.
  946.  
  947.     * If you have a lot of users or lots of high speed data lines,
  948.       increase the number of `clist' buffers in the kernel.
  949.  
  950.     * If you upgraded to 16550A UARTs and this helped but did not
  951.       solve the problem, then adjust the FIFO trigger level.
  952.  
  953.     * If you are running high speed lines on a loaded system, adjust
  954.       the `ttyhog' value.
  955.  
  956.     When diagnosing serial problems, start at the top of this list
  957.     and work down.  If your flow control is broke, it will do no good
  958.     to go poking around inside your XENIX kernel.
  959.  
  960.  
  961. QD6.  Does XENIX support 16550A UARTs?
  962.  
  963.     The guts of a standard COM port is a UART (universal asynchronous
  964.     receiver/transmitter) chip.  Most serial ports use the 16450 or
  965.     an equivalent chip.  The 16550A is a pin-compatible, drop in
  966.     replacement which adds 16-characters of on-chip FIFO buffering.
  967.     The FIFOs reduce system loading and increase performance.
  968.  
  969.     Starting with 2.3.4, the `sio' driver recognizes 16550A UARTs and
  970.     enables the on-chip FIFOs.  Older versions of XENIX merely treat
  971.     this chip as an expensive 16450.  You can get 16550A support with
  972.     any version of XENIX by installing the FAS driver written by Uwe
  973.     Doering and based upon Jim Murray's `asy' driver.  FAS was published
  974.     in alt.sources, and is available at most reputable archive sites.
  975.  
  976.     We recommend sticking with the National Semiconductor NS16550A.
  977.     Many manufactures make usable 16450 clones, but some of the 16550
  978.     compatible chips aren't so compatible.  Also, older versions of
  979.     the 16550 are known to be broken.  Ensure yours have an `A' suffix.
  980.  
  981.  
  982. QD7.  How do I increase the number of `clists'?
  983.  
  984.     XENIX buffers terminal characters in data structures called
  985.     `clists'.  There is a fixed pool of clists on the system, and when
  986.     that supply is exhausted incoming characters are dropped.  Therefore,
  987.     the more active users you have on your system, the larger this
  988.     pool of clists should be.  The default configuration is 100 clists.
  989.     Each terminal line requires an average of 5 to 10 clists.  High
  990.     speed modems need more.  A conservative strategy would be to
  991.     allocate 15 clists per active terminal.  For example, if you have
  992.     16 serial ports and 4 console screens active at once, allocate
  993.     (16+4)*15 or 300 clists.
  994.  
  995.     To see the number of clists on your system, login as root and run:
  996.  
  997.         cd /usr/sys/conf
  998.         ./configure -y NCLIST
  999.  
  1000.     To change the number of clists, say to 300, login as root and run:
  1001.  
  1002.         cd /usr/sys/conf
  1003.         ./configure NCLIST=300
  1004.  
  1005.     then rebuild and install a new kernel and reboot.
  1006.  
  1007.  
  1008. QD8.  How do I change the 16550A trigger level?
  1009.  
  1010.     If installing a 16550A UART helped but didn't totally fix a lost
  1011.     character problem, and your system is heavily loaded, then there
  1012.     is something else you can try.  If you installed a 16550A and
  1013.     there was no effect at all, then skip this -- it won't help.
  1014.  
  1015.     The XENIX `sio' driver initializes the 16550A with a trigger level
  1016.     of 14.  This means that under continual data streams the UART will
  1017.     wait until 14 characters accumulate before telling XENIX to come
  1018.     get them.  This gives the system two character times to get in
  1019.     and service the COM port.  If XENIX does not service the port in
  1020.     that time the 16-character buffer will overflow and and characters
  1021.     will be dropped.  This might happen on a heavily loaded system.
  1022.  
  1023.     The trigger level is initialized at boot time from the 16-byte
  1024.     `sio_fifoctl[]' array.  This array specifies the UART control
  1025.     register initialization values for device minor numbers 0 through
  1026.     15.  Or more exactly, the minor number is ANDed with 0x0F to get
  1027.     the index into this array.  For example, the initialization for
  1028.     /dev/tty2a (minor=8) is in `sio_fifoctl[8]'.  The possible values
  1029.     are as follows:
  1030.  
  1031.         sio_fifoctl:    0xCF    0x8F    0x4F    0x0F
  1032.         trigger level:   14      8       4       1
  1033.  
  1034.     The standard value is 0xCF.  A smaller value will notify the system
  1035.     earlier that characters are waiting, thus providing the system
  1036.     more time to service the port, but increasing the number of
  1037.     interrupts generated by the port.
  1038.  
  1039.     As an example, here is how to change the trigger level for /dev/tty2a
  1040.     (and /dev/tty2A) to 8 characters (code=0x8F):
  1041.  
  1042.         cp /xenix /xenix.save           # make a backup!
  1043.         adb -w /xenix                   # use "/etc/_fst" if no "adb"
  1044.         * sio_fifoctl+8/x
  1045.         sio_fifoctl+0x8:        0xcfcf
  1046.                                   | | 
  1047.                                   | `---- This is the 8-bit value for the
  1048.                                   |          port we want (minor=8).
  1049.                                   |
  1050.                                   `------ This is the 8-bit value for the
  1051.                                           next port (minor=9).
  1052.         * sio_fifoctl+0x8/w 0xcf8f
  1053.         sio_fifoctl+0x8:        0xcfcf= 0xcf8f
  1054.         * $q
  1055.  
  1056.  
  1057. QD9.  How do I adjust the `ttyhog' value?
  1058.  
  1059.     Since XENIX has a fixed pool of clists, the kernel tries to prevent
  1060.     one tty from hogging all of them.  The limit is defined by `ttyhog',
  1061.     and defaults to 256 (0x100 hex).  This limit might be too low if
  1062.     you've got some particularly fast devices on a particularly slow
  1063.     system.  To change the `ttyhog' value you must patch the kernel
  1064.     image.  The following increases `ttyhog' to 512 (0x200 hex).
  1065.  
  1066.         cp /xenix /xenix.save           # make a backup!
  1067.         adb -w /xenix                   # use "/etc/_fst" if no "adb"
  1068.         * ttyhog/x
  1069.         _ttyhog:        0x100
  1070.         * ttyhog/w 0x200
  1071.         _ttyhog:        0x100=  0x200
  1072.         * $q
  1073.  
  1074.  
  1075. QD10.  Where can I find TCP/IP?  NFS?
  1076.  
  1077.     TCP/IP = many places.  NFS = forget it.
  1078.  
  1079.     Years ago, before SCO released a TCP/IP for Xenix, several vendors
  1080.     had products.  These include Novell (the old `Excelan Lan Workplace'
  1081.     package), and Network Research Corp.  Those packages are getting
  1082.     pretty old and crufty.  We recommend the SCO package.  You need
  1083.     to purchase and install either the SCO Streams Runtime or SCO
  1084.     Streams System before loading TCP/IP.
  1085.  
  1086.     Nobody makes an NFS for Xenix, and don't hold your breath waiting
  1087.     for one.  Newer versions of Unix provide either a `vnode' (BSD
  1088.     Unix) or `filesystem switch' (System V 3.2 and beyond) mechanism,
  1089.     that supports new filesystem types.  With Xenix, the filesystem
  1090.     support must be coded right into the kernel.  The task of merging
  1091.     NFS code with VP/ix hacks, Xenix-net hacks, etc. is more than can
  1092.     be justified.
  1093.  
  1094.  
  1095. QD11.  BSD based uucp can't connect to my machine.
  1096.  
  1097.     BSD based uucp sends even parity.  XENIX uucp expects no parity.
  1098.     Add:
  1099.  
  1100.         "" P_ZERO
  1101.  
  1102.     to the chat script in their (not your) `Systems' or `L.sys' file.
  1103.     For example, the following works on a Sun 3:
  1104.  
  1105.         xnxbox Any uucp 19200 5553333 "" P_ZERO "" \r in:--in: nuucp
  1106.  
  1107.  
  1108. QD12.  uucp truncates my system name to seven characters!
  1109.  
  1110.     This misfeature was introduced in the xnx155b supplement.  The
  1111.     story we hear is that SCO broke their `uucp' to cater to systems
  1112.     that choke on long system names.  There is a workaround.  For
  1113.     system name = `verylongname', add to every record in the
  1114.     /usr/lib/uucp/Permissions file:
  1115.  
  1116.         MYNAME=verylongname
  1117.  
  1118.     Next, rename /usr/bin/uuname to /usr/bin/uuname.sco.  Replace
  1119.     /usr/bin/uuname with:
  1120.  
  1121.         :
  1122.         if [ $# -ne 1 -o "X$1" != "X-l" ] ; then
  1123.             exec /usr/bin/uuname.sco $@
  1124.             exit 1
  1125.         fi
  1126.         head -1 /etc/systemid
  1127.         exit $?
  1128.  
  1129.     This allows programs using `uuname' to receive the correct,
  1130.     untruncated name.
  1131.  
  1132.  
  1133. QD13.  What is the uucp `windows' patch?
  1134.  
  1135.     uucp transmits data in packets, usually 64 bytes apiece.  An
  1136.     acknowledgement is required for every packet sent -- but not
  1137.     immediately.  A window of unacknowledged packets is allowed.  The
  1138.     default window size is three, that means `uucico' won't stop
  1139.     sending unless it falls more than three packets behind.  A three
  1140.     packet window isn't big enough for very fast media and long delay
  1141.     media.  The `uucico' binary can be patched to increase the window
  1142.     size by the following manual procedure:
  1143.  
  1144.         cd /usr/lib/uucp
  1145.         cp uucico uucico.old            # make a backup copy!!
  1146.         adb -w uucico
  1147.         * windows/x                     # display windows value
  1148.         _windows:       0x3
  1149.         * windows/w 7                   # change it to seven
  1150.         _windows:       0x3=    0x7
  1151.         * $q                            # done
  1152.  
  1153.     If you have XENIX 2.3.4 but not the Development System, use
  1154.     `/etc/_fst' instead of `adb'.  If you can't find adb on your
  1155.     system, look on the N02 disk.
  1156.  
  1157.     This change increases the window size to seven -- the maximum
  1158.     possible.  A similar change must be performed on the remote system's
  1159.     uucico because the actual window size is negotiated as part of
  1160.     the protocol startup.
  1161.  
  1162.  
  1163. QD14.  uucp gives `alarm' messages, eventually dies.
  1164.  
  1165.     If you run uucp in debugging mode (`uutry -x9') and see it get
  1166.     stuck like:
  1167.  
  1168.         alarm 1
  1169.         send 37777777621
  1170.         alarm 2
  1171.         send 37777777621
  1172.         alarm 3
  1173.         send 37777777621
  1174.         alarm 4
  1175.         send 37777777621
  1176.  
  1177.     and eventually die, this means your system got jammed waiting for
  1178.     a response that never came.  The most common cause of this problem
  1179.     running uucp across a modem with XON/XOFF flow control enabled
  1180.     (e.g. a Telebit modem with S58=3).  You can't do that; you must
  1181.     run with no flow control or RTS/CTS handshaking (on a Telebit that
  1182.     would be S58=0 or S58=2, respectively).  Other possible causes of
  1183.     this problem are serial cards with broken handshaking or running
  1184.     out of clists.
  1185.  
  1186.  
  1187. ******************************************************************************
  1188. **********************  Display and Graphics Questions  **********************
  1189. ******************************************************************************
  1190.  
  1191.  
  1192. QE1.  How come Xenix won't recognize my VGA display?
  1193.  
  1194.     Probably because you are running a very old version of Xenix.
  1195.     VGA support was introduced in release 2.3.0.
  1196.  
  1197.  
  1198. QE2.  How can I do a printscreen under XENIX?
  1199.  
  1200.     MS-DOS users can produce a screen printout with one keystroke.
  1201.     XENIX does not offer this builtin capability.  SCO's MultiView
  1202.     product provides this.  Also, it can be simulated with the following
  1203.     script:
  1204.  
  1205.         :
  1206.         # @(#) prtscrn     Print Screen
  1207.         # execute from cu as ~!prtscrn
  1208.         oldstty=`stty -g`               # save stty
  1209.         stty -echo ixon ixoff -ixany    # no echo
  1210.         /bin/echo '\033[2i\c'           # send screen to host
  1211.         # grab 24 lines, clean up trailing blanks, print it
  1212.         sed -e 's/ *$//' -e 24q | lp
  1213.         stty $oldstty                   # put stty back when done.
  1214.  
  1215.     Another approach is the `prtscrn2' program by Chip Rosenthal.  It
  1216.     grabs the contents of any console screen and sends it to standard
  1217.     output.  See comp.sources.misc.
  1218.  
  1219.  
  1220. QE3.  How can I blank the console display when it is idle?
  1221.  
  1222.     A screen blanker is built into the new console driver, provided
  1223.     by 2.3.4 or 2.3.3 via SLS xnx296a.  It is finicky about the hardware
  1224.     it likes.  Anything less than a VGA display will not work.  To
  1225.     enable the blanker, as root:
  1226.  
  1227.         cd /usr/sys/conf
  1228.         ./configure
  1229.  
  1230.     Select option 6 (MultiScreens) and enter a non-zero value for TBLINK.
  1231.     (The manual incorrectly calls this TBLNK.)  Then ./link_xenix and
  1232.     ./hdinstall.
  1233.  
  1234.     If the built-in blanker doesn't like your video adapter or you
  1235.     have an older version of Xenix, save the following script to a
  1236.     file and run it out of cron every fifteen minutes or so.  It will
  1237.     check if all console multiscreens have been idle for ten minutes
  1238.     or more, and if so switch the display to an unused screen (as
  1239.     configured by SCRN).
  1240.  
  1241.         :
  1242.         who -u | awk '
  1243.                 $2 !~ /^tty[01][0-9]$/  {next}    # Not a console screen.
  1244.                 $6 == "."               {exit(1)} # Screen in use.
  1245.                 $6 ~ /^0:0/             {exit(1)} # Not idle long enough.
  1246.         ' >/dev/null 2>&1
  1247.         if [ $? -eq 0 ] ; then
  1248.                 # Leading "\0" aborts any pending escape sequence.
  1249.                 SCRN=10
  1250.                 echo "\0\033[${SCRN}z\c" >/dev/tty01
  1251.         fi
  1252.  
  1253.  
  1254. QE4.  How can I do graphics under XENIX?  What programs are available?
  1255.  
  1256.     There are two approaches to graphics programming.  At the very
  1257.     lowest level, the screen(HW) manual page describes ioctl() codes
  1258.     to access the video display memory and controller.  Device-independent
  1259.     graphics is provided by the Computer Graphics Interface (CGI)
  1260.     package included with the XENIX Development System.  CGI drivers
  1261.     are provided for VGA, EGA, and Hercules displays; Epson, LaserJet,
  1262.     and Postscript printers; and HP plotters.  Several programs have
  1263.     been posted to the net that run under CGI, such as gnuplot,
  1264.     starchart, and gif.  See comp.sources.misc.
  1265.  
  1266.  
  1267. QE5.  CGI graphics mangles grey scale on a mono VGA.
  1268.  
  1269.     SCO fixed their monochrome VGA driver in version 2.3.3.   The
  1270.     default color mapping in CGI maps many colors with the identical
  1271.     total intensity. They appear as the same shade grey-scale display.
  1272.     Try using the CGI functions vs_color() and/or vsc_table() to create
  1273.     a color map that works with your display.  Try vsf_style() to
  1274.     create hatching or other fill-patterns in place of colors.
  1275.  
  1276.  
  1277. QE6.  CGI graphics fail on a LaserJet in landscape mode.
  1278.  
  1279.     A bug in the CGI 1.1.0 LaserJet driver causes all output to
  1280.     appear on a single line.  In landscape mode the driver puts out
  1281.     a spurious escape sequence `\033&a864V' that forces all output
  1282.     to the same position on the page.  You can either remove the
  1283.     offending escape sequence from the driver with a binary editor
  1284.     (keep a backup copy), or use a filter to clobber that sequence
  1285.     from the output.
  1286.  
  1287.  
  1288. ******************************************************************************
  1289. ***************  XENIX and MS-DOS Interoperability Questions  ****************
  1290. ******************************************************************************
  1291.  
  1292.  
  1293. QX1.  Can XENIX share a hard disk with MS-DOS?
  1294.  
  1295.     Yes.  SCO directly supports an MS-DOS 3.2 partition on the same disk as
  1296.     your Xenix partition.  You must:
  1297.  
  1298.         - Install MS-DOS 3.2 bootable partition as the FIRST partition.
  1299.  
  1300.         - Install XENIX bootable as the next partition.
  1301.  
  1302.         - Select XENIX as the `active' partition.
  1303.  
  1304.     At the
  1305.  
  1306.         Boot
  1307.         :
  1308.  
  1309.     prompt either type `dos' for MS-DOS boot or press ENTER for XENIX.
  1310.  
  1311.     If you create any other type of partition (e.g. one of the new,
  1312.     larger sized MS-DOS 5.0 partitions) or forget to create the MS-DOS
  1313.     partition before loading XENIX, then you can still access it by
  1314.     booting from a floppy disk.
  1315.  
  1316.     It is possible to provide `dual boot' capability for other partition
  1317.     types, for example MS-DOS 5.0 large partitions, by making a modified
  1318.     version of the /dos program.  The following instructions, based
  1319.     upon a procedure by Vic Michael <victor@alchemy.UUCP>, show how.
  1320.  
  1321.         su                              # become superuser
  1322.         cp /dos /dos5                   # make a new version of dos5 program
  1323.         adb -w /dos5                    # use "/etc/_fst" if no "adb"
  1324.         * 0x3f:0x61?i                   # examine instruction at 0x61
  1325.         0x3f:0x61:      add     al,0x4
  1326.         * 0x61?w 0x604                  # change '0x4' to '0x6'
  1327.         0x3f:0x61:      0x404=  0x604
  1328.         * 0x61?i                        # verify change
  1329.         0x3f:0x61:      add     al,0x6
  1330.         * $q
  1331.  
  1332.     Now, you can say `dos5' at the `Boot' prompt to start MS-DOS.  You
  1333.     will NOT, however, be able to use the `dos(C)' tools to access this
  1334.     partition from Xenix.
  1335.  
  1336.  
  1337. QX2.  Can XENIX access MS-DOS disks?
  1338.  
  1339.     Yes, with limitations.  The commands on the `dos(C)' manual page
  1340.     provide access to MS-DOS disks (floppy and fixed) under XENIX.
  1341.     The limitation is that only conventional MS-DOS 3.2 hard disk
  1342.     partitions can be recognized.  Extended MS-DOS 3.2, old MS-DOS
  1343.     1.0, and large MS-DOS 4.0/5.0 partitions cannot be accessed with
  1344.     the existing tools.
  1345.  
  1346.     If you run into problems with the dos(C) commands, check that
  1347.     `/etc/default/msdos' provides proper aliases for the A:, B:, etc.
  1348.     devices.  Also, if root can access the MS-DOS fixed disk but users
  1349.     can't, check the permissions on /dev/hd0d (the XENIX name of the
  1350.     MS-DOS partition on the first fixed disk).
  1351.  
  1352.     The `mtools' package by Emmet Gray in comp.sources.misc provides
  1353.     better handling of MS-DOS devices under XENIX.  Modify the
  1354.     `devices.c' file to understand XENIX device naming.
  1355.  
  1356.         #ifdef M_XENIX
  1357.         struct device devices[] = {
  1358.             {'A', "/dev/install",  0L, 12, 0, (int (*) ()) 0, 0, 0, 0},
  1359.             {'B', "/dev/install1", 0L, 12, 0, (int (*) ()) 0, 0, 0, 0},
  1360.             {'C', "/dev/hd0d",     0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  1361.             {'D', "/dev/hd1d",     0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  1362.             {'\0', (char *) NULL,  0L,  0, 0, (int (*) ()) 0, 0, 0, 0}
  1363.         };
  1364.         #endif /* M_XENIX */
  1365.  
  1366.     If you assign `/dev/install' to the `A' drive, you don't need to
  1367.     worry about disk density when reading and writing.  However, you
  1368.     need to specify the full device name when formatting.  For example,
  1369.     to format a high-density disk in drive A: you must specify the
  1370.     full device name:
  1371.  
  1372.         dosformat /dev/fd096ds15
  1373.  
  1374.  
  1375. QX3.  Can XENIX execute MS-DOS programs?
  1376.  
  1377.     Yes.  You must purchase SCO VP/ix.  VP/ix emulates an 8086 PC/XT
  1378.     running MS-DOS.  The compatibility provided by VP/ix is fair with
  1379.     a significant performance penalty.  VP/ix will not run programs
  1380.     that use 80286 or 80386 instruction codes.  VP/ix is not available
  1381.     for XENIX/286.
  1382.  
  1383.  
  1384. QX4.  Can MS-DOS execute XENIX programs?
  1385.  
  1386.     No.  With the XENIX Development System, you can compile programs
  1387.     to execute under MS-DOS with the `-dos' command line switch.
  1388.  
  1389.  
  1390. ******************************************************************************
  1391. *********************  The (in)Famous XENIX Cheat-Sheet  *********************
  1392. ******************************************************************************
  1393.  
  1394.  
  1395. QZ1.  What the $%*&! is happening?
  1396.  
  1397.     Who am I?                           /usr/bin/who am i
  1398.     Where am I?                         /bin/pwd
  1399.     What am I doing?                    /bin/ps -f
  1400.     Am I having fun yet?                /usr/games/worms -R
  1401.     What's my user/group id?            /usr/bin/id
  1402.     Who did I login as?                 /usr/bin/logname
  1403.     What's my terminal?                 /bin/tty
  1404.     What are my terminal parameters?    /bin/stty -a
  1405.     Is terminal flow control working?   /usr/games/stars
  1406.     What is my current crontab file?    /usr/bin/crontab -l
  1407.     Do I have uucp jobs queued?         /usr/bin/uustat
  1408.     What is the system doing?           /usr/bin/w
  1409.     How is the system running?          /usr/bin/vmstat 10
  1410.     Has the system been swapping?       /usr/bin/vmstat -s
  1411.     Open files, inodes, processes?      /bin/pstat | grep '^[0-9]'
  1412.     What are the kernel parameters?     /usr/sys/conf/configure -x
  1413.     What versions are installed?        egrep "#prd|#set|#rel" /etc/perms/*
  1414.     What are the hardware settings?     /etc/hwconfig -h
  1415.     Is /etc/passwd correct?             /etc/pwcheck
  1416.     Is /etc/group correct?              /etc/grpcheck
  1417.     Is /etc/gettydefs correct?          /etc/getty -c /etc/gettydefs
  1418.     Do all files have owners?           /usr/bin/quot
  1419.     Who is using all the disk space?    /usr/bin/quot
  1420.     When did joe last login?            /usr/bin/last joe
  1421.     What files are owned by UID=944?    find / -user 944 -exec l -d {} \;
  1422.     Are file perms/owners set OK?       cd / ;
  1423.                                           /etc/fixperm -n /etc/perms/rts
  1424.     How about perms on uucp files?      cd / ;
  1425.                                           /etc/fixperm -nd UUCP /etc/perms/rts
  1426.     Check uucp file consistency.        /usr/lib/uucp/uucheck
  1427.     What are uucp access permissions?   /usr/lib/uucp/uucheck -v
  1428.     What is the print spooler doing?    /usr/bin/lpstat -t
  1429.     Stop the scheduler.                 /usr/lib/lpshut
  1430.     Restart a printer.                  /usr/lib/accept printer_name ;
  1431.                                           /usr/bin/enable printer_name
  1432.  
  1433.     [Following apply only if TCP/IP is installed.]
  1434.  
  1435.     Where am I?                         /usr/bin/hostname
  1436.     Is system foo alive?                /usr/bin/ping foo
  1437.     What machines are connected?        /usr/bin/netstat
  1438.     How is the network doing?           /usr/bin/netstat 10
  1439.     Where are the packets going?        /usr/bin/netstat -r
  1440.     Network not work?                   /usr/bin/netstat -s
  1441.  
  1442.     [Thanks to Jeff Liebermann.]
  1443.  
  1444.  
  1445. This collection is Copyright 1992-1993, Unicom Systems Development, Inc.
  1446. All rights reserved.  Permission granted to reproduce and distribute this
  1447. document provided this notice remains intact and any changes to the document
  1448. are clearly marked.  We have tried to review all information, but cannot
  1449. guarantee it for any particular purpose.  We do not offer any warranties or
  1450. representations, nor do we accept any liability for any damage resulting
  1451. from the use or misuse of information or procedures in this document.
  1452.  
  1453. [ end of sco-xenix 1.45 ]
  1454.